package com.hibiscusking.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    // 第几页
    private Integer currentPage;
    // 页数
    private  Integer pageSize;
    // 关键字查询
    private String keyword;
    public Integer getStart() {
        return (this.currentPage - 1 ) * this.pageSize;
    }
}
